using System;
using System.Collections.Generic;
using System.Text;

using System.Data;
using System.Data.SqlClient;

using System.Configuration;

using NUnit.Framework;


[TestFixture]
public abstract class ConnectionFixture
{
    private SqlConnection connection;

    [TestFixtureSetUp]
    public void OpenConnection()
    {
        string cnnStr = ConfigurationManager.ConnectionStrings["Recording_ConnectionString"].ConnectionString;
        connection = new SqlConnection(cnnStr);
        connection.Open();
    }

    [TestFixtureTearDown]
    protected void CloseConnection()
    {
        connection.Close();
    }


    public SqlConnection Connection
    {
        get { return connection; }

    }

}

